package com.qiangshi.createTableLog.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.qiangshi.common.annotation.Excel;
import com.qiangshi.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 记录式自动创建记录对象 qs_create_table_log
 *
 * @author qiangshi
 * @date 2022-03-03
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
public class QsCreateTableLog extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(type = IdType.AUTO)
    private Long id;
    /** 表名 */
    @Excel(name = "表名")
    private String tableName;
    /** 报名后缀 */
    @Excel(name = "报名后缀")
    private String nameSuffix;
    /** 表类型（1:原始表,2:生成表） */
    @Excel(name = "表类型", readConverterExp = "1=:原始表,2:生成表")
    private Integer tableType;
    /**
     * 箱号
     */
    @Excel(name = "箱号")
    private Integer caseNumber;
    /**
     * 月份
     */
    @Excel(name = "月份")
    private String monthNumber;



    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("createTime", getCreateTime())
                .append("tableName", getTableName())
                .append("nameSuffix", getNameSuffix())
                .append("tableType", getTableType())
                .toString();
    }
}
